<? 
session_start();
if(isset($_SESSION['Username']))
{
 if($_SESSION['Type']==1)
  header("location:hireView.php");
  if($_SESSION['Type']==3)
  header("location:applyview.php");
  if($_SESSION['Type']==2)
  header("location:professor.php");
}
session_destroy();
	
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>AIMS</title>
<link href="CSS/Global.css" type="text/css" rel="stylesheet" />
<link href="CSS/Base.css" type="text/css" rel="stylesheet" />
<link href="CSS/Fixed.css" type="text/css" rel="stylesheet" />
<style>
div.panel
{
	width: 25%;
	height: 20%;
	border: 2px solid #990000;
	margin:0 auto;

}

.loginform
{
	margin-top:200px;
	}
		.Loginbox
{
	width:300px;
	min-height:200px;
	margin-top:auto;
	 margin-left: auto;
	 margin-right:auto;
  margin-bottom: auto;
box-shadow: 0px 0px 10px 3px rgb(211, 211, 211);
border-radius: 5px;
background-color: rgb(255, 255, 255);
padding:30px;	
}	

</style>
</head>
<body style="min-width:1000px;background:none">
<div id="branding-bar" class="gateway">
<div class="bar">
<div class="wrapper">
<h1 class="campus"><a ><img alt="Indiana University" height="73" src="Resources/img/trident-tab.gif.png" width="64"/>AIMS</a></h1>
</div>
</div>
</div>

<form name="Login" method="post" action="checkLogin.php" class="loginform"> 
<div>
<div class="Loginbox">
      <table>
      <thead>
      <tr>
      <td colspan="2">
      <label class="Header1">Please Login to continue</label>
      </td>
      </tr>
      </thead>
    <tbody>
    <tr/>
    <tr/>
    <tr/>
    <tr/>
    <tr/><tr/>
    <tr/>
    <tr/>
    <tr/>
    <tr/>
    <tr/>
    <tr/><tr/>
    <tr/>
    <tr/>
    <tr/>
    <tr/>
    <tr/>
    <tr/><tr/>
    <tr/>
        <tr>
            <td>
                <label class="crimson-text">Username</label>
            </td>
            <td>
              <input type="text" name="Username" class="crimson-border"  style="text-align:left"/>
            </td>
          </tr>
            <tr/>
           <tr/>
           <tr/>
           <tr/>
           <tr/>
           <tr/>
           <tr/>
           <tr/>
           <tr/>
           <tr/>  
          <tr>
            <td> 
               <label class="crimson-text"> Password </label>
            </td>
            <td>
               <input type="password" name="Password" class="crimson-border"/>
            </td>
           </tr>
           <tr/>
           <tr/>
           <tr/>
           <tr/>
           <tr/>
           <tr/>
           <tr>
               <td height="76">
                <a href="Register.php" alt="Register">New User ? </a>
              </td> 
              <td>
              <input type="Submit" value="Login"/> 
              </td>
          </tr>
          
      </tbody>
      </table>
      </div>
      </div>

      </form>
</body>
</html>